user (current login user) in viewcomponent

219

user (current login user) in viewcomponent -

public async Task<IViewComponentResult> InvokeAsync()
{
     _userManager.GetUserId(Request.HttpContext.User);

    return View();
}

Comments

Submit
0 Comments